package com.coderly.onlinegallerysharingplatform.toolkit;

import java.time.ZoneOffset;
import java.util.Date;

public class DateUtils {

    /**
     * LocalDateTime 转时间戳
     *
     * @param date
     * @return
     */
    public static long date2Timestamp(Date date) {

        return date.toInstant().toEpochMilli();
    }
}